Skip to content

Add required idid exit status to STIFF3 solver interfaces - #51

Merged
ivan-pi merged 3 commits into
mainfrom
copilot/add-exit-status-flag-to-stiff3
May 12, 2026
Merged

ivan-pi merged 3 commits into
mainfrom
copilot/add-exit-status-flag-to-stiff3

Conversation

Copilot AI commented May 12, 2026 •

Copy link
Copy Markdown
Contributor
  • Review the new feedback and inspect the affected test file
  • Remove the LU-failure case from test/ode_idid.f90 and keep the underflow regression
  • Update the file-level explanation so it only describes the retained underflow scenario
  • Rebuild and run targeted tests for the modified regression driver
  • Reply to the new review comment with the fixing commit hash
  • Run final validation

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/cfc168cc-31b3-4e0c-9237-d65abc89893e

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>
Comment thread src/stiff3_solver.f90 Outdated
! exit main loop

if (icon == 1) then
idid = 0

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot If we reached this section, I assume IDID should have been zero from the initialization phase.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the redundant success-path assignment in b180f54; idid now just stays at its initialized zero on normal completion.

Comment thread test/ode_idid.f90
Comment on lines +1 to +10
program ode_idid

use stiff3_solver, only: stiff3, wp => stiff3_wp

implicit none

real(wp), parameter :: rosenbrock_a = 0.4358665215084589_wp
real(wp), parameter :: x0_underflow = 1.0e12_wp
real(wp), parameter :: dx_underflow = 8.0_wp*spacing(x0_underflow)
real(wp), parameter :: omega = 1.0e10_wp

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot This example feels very artificial. We are integrating an "empty" ODE. Could you add an explanation above the program scope on the purpose and design of this test driver.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a file-level explanation in b180f54 describing why the LU-failure and underflow cases are intentionally constructed in this test driver.

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/33960ac0-e6a7-4963-b10a-d58fecd2d187

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https tcp --destination-port 53 -j ACCEPT (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from ivan-pi May 12, 2026 09:58
Comment thread test/ode_idid.f90

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot I don't understand the LU failure case, because the right-hand side is the function f = 0. This is not an ODE system...

Please remove the LU failure case; we'll add an example later when we find one. The bisection underflow case is useful however.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the LU-failure case in 76e0d32 and kept ode_idid focused on the useful bisection-underflow regression.

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/bf11bb41-fcde-4974-bb8d-9d500255f8a2

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from ivan-pi May 12, 2026 10:13
@ivan-pi
ivan-pi marked this pull request as ready for review May 12, 2026 10:55
@ivan-pi
ivan-pi merged commit d394805 into main May 12, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants